<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
     *{
         margin:0;
         padding: 0;
         list-style: none;
     }
     ul li{
         height: 100vh;
     }
    </style>
</head>
<body>
    <ul>
        <li style="background-color: blue">1</listy>
        <li style="background-color: rgb(0, 255, 0)">2</li>
        <li style="background-color: rgb(156, 194, 54)">3</li>
        <li style="background-color: rgb(168, 102, 40)">4</li>
        <li style="background-color: rgb(165, 30, 124)">5</li>
    </ul>
</body>
<script src="../js/jquery-3.1.1.js"></script>
<script>
 var arr=[];


 $(window).on('scroll',function(){
    $('li').each(function(i,e){
     arr[i]=$(this).offset().top;
   })
 console.log(arr);
 })
</script>
</html>